package net.itfenxiang.web.controller;

import lombok.AllArgsConstructor;
import net.itfenxiang.web.service.WebService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @description: TODO
 * @author: 墨凡
 * @date: 2024/4/28 15:19
 * @version: 1.0
 */
@RequestMapping("get")
@Controller
@AllArgsConstructor
public class WebController {

    private final WebService webService;

    @ResponseBody
    @RequestMapping(value = "get", method = RequestMethod.GET)
    public String getStr(){
        return "hhhh";
    }

    @ResponseBody
    @GetMapping("/config")
    public String getConfig(){
        return webService.getConfig();
    }

}
